package com.boot.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.boot.service.TokenService;

@Controller
public class TokenController {

	@Resource
	private  TokenService tokenService;
	/**
	 * 校验token
	 * @param user_id
	 * @param token
	 * @return
	 */
	public boolean checkToken(String user_id,String phone,String token){
		return tokenService.checkToken(user_id,phone,token);
	}
}
